export default {
    install(Vue, options) {
        Vue.prototype.$goToGoodsDetail = (id = -1) => {
            //  id 默认为 -1
            this.$router.push({ name: "商品", params: { goodsID: id } });
        }

    }
}